home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
src
/
haeberli
/
autopaint
/
Makefile
< prev
next >
Wrap
Makefile
|
1994-08-01
|
2KB
|
67 lines
#!smake
include $(ROOT)/usr/include/make/commondefs
LCOPTS = -xansi -D__STDC__
LCINCS = -I../include -I/usr/include/gl
CFILES = autopaint.c modcolor.c modpos.c moddir.c misc.c
LLDLIBS = ../libcan/libcan.a ../libgutil/libgutil.a ../libimage/libimage.a -lgl -lm
CVERSIONS=
LD_QUICKSTART_INFO=
LDIRT = *.Addrs *.Counts prof.txt lumdir.rgb normdir.rgb spiral.rgb \
bw.bw blur.bw kern.bw normdir.bw
TARGETS = autopaint
# OBJECTS = modcolor.o modpos.o moddir.o misc.o
default all: $(TARGETS)
$(MAKE) -f $(MAKEFILE) $(TARGETS)
include $(COMMONRULES)
demo: autopaint spiral normdir lumdir makedirs
$(TARGETS): $(OBJECTS)
$(CCF) -o $@ $(OBJECTS) $(LDFLAGS)
# 3 images are pasted in their sequence of operations:
# makes brush strokes that are in a sprial pattern. cone.bw controls the
# brush stroke direction
spiral:
ipaste in.rgb
ipaste cone.bw
autopaint in.rgb spiral.rgb -m 600 600 -c papers/paper.rgb -b brush.bw \
-n 0.3 -s 20.0:20.0 -di cone.bw -d 45.0:20.0 -a 0.9:0.2 -q 1.5
ipaste spiral.rgb
# 4 images are pasted in their sequence of operations:
# uses the normal of the surface to control the brush stroke direction
normdir:
ipaste norm.rgb
../imgtools/normtodir norm.rgb normdir.bw 1
ipaste normdir.bw
ipaste save.rgb
autopaint save.rgb normdir.rgb -v -m 600 600 -c papers/paper.rgb \
-b longbrush.bw -n 0.3 -s 30.0:10.0 -di dir.bw -d 0.0:20.0 \
-a 0.9:0.2 -q 4.0
# rm normdir.bw
ipaste normdir.rgb
# 3 images are pasted in their sequence of operations:
#uses the direction of the gradient of the luminence to control the
#brush stroke direction
lumdir:
tobw in.rgb bw.bw
../imgtools/blur bw.bw blur.bw 100
ipaste blur.bw
# rm bw.bw
../imgtools/conimg kern.bw 3 3 255
../imgtools/convolve blur.bw dir.bw kern.bw -g
# rm blur.bw kern.bw
ipaste dir.bw
autopaint in.rgb lumdir.rgb -m 600 600 -c papers/paper.rgb -b brush.bw \
-n 0.2 -s 36.0:24.0 -di dir.bw -d 0.0:10.0 -a 0.9:0.2 -q 1.8
ipaste lumdir.rgb